package place

import (
	"encoding/xml"
	"time"

	"awfan.cn/utils"
	"gopkg.in/mgo.v2/bson"
)

type PLACES_XML struct {
	XMLName xml.Name `xml:"places" json:"-"`

	Places []PLACE_XML `xml:"place" json:"places"`
}

type PLACE_XML struct {
	XMLName      xml.Name              `xml:"place" json:"-" bson:"-"`
	Id           bson.ObjectId         `xml:"id" json:"id" bson:"_id,omitempty"`
	Name         string                `xml:"name" json:"name" bson:"name,omitempty"`
	Member       utils.EMBED_DISPLAYID `xml:"member" json:"member" bson:"member,omitempty"`
	Created_time time.Time             `xml:"created_time" json:"created_time" bson:"created_time,omitempty"`
}
